DownloadUpdated

An event indicating that the download has been updated.

Functions

Link copied to clipboard
open fun currentSpeed(): Long
Returns the current download speed estimate in bytes/second.
Link copied to clipboard
open fun download(): Download
Returns the Download instance initiated this event.
Link copied to clipboard
Returns an Optional containing the rough percent complete or an empty Optional if we do not know it, because we did not receive the total size.
Link copied to clipboard
open fun receivedBytes(): Long
Returns the number or received (downloaded) bytes.
Link copied to clipboard
open fun totalBytes(): Long
Returns the total size of the downloaded file in bytes.